const Layout = () => import("@/layout/index.vue");

const routes = [
    {
        path: "/db",
        name: "DB",
        component: Layout,
        meta: {
            title: "数据库",
            icon: "DB",
            affix: true,
            keepAlive: true,
            alwaysShow: true,
        },
        children: [
            {
                path: "/db/index",
                name: "DBIndex",
                component: () => import("@/pages/db/index.vue"),
                meta: {
                    title: "数据表管理",
                    icon: "setting",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            },
            {
                path: "/db/form",
                name: "DBForm",
                component: () => import("@/pages/db/form.vue"),
                meta: {
                    title: "表单",
                    icon: "source",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                }
            },
        ],
    }
];

export default routes;
